import java.io.*;
class Point{
    int x,y;
    void setXY(int a,int b){ x=a;y=b; }
    void show(){ System.out.println("Location:("+x+","+y+")"); }
}
class Rectangle extends Point{
    int y;
int width,height;
    int area(){ return width*height; }
    void setWHY(int w,int h,int yy){width=w; height=h; y=yy; }
    void show(){
       System.out.println("Location:("+x+","+y+")");
       System.out.println("Area:"+area()); 
    }
}
public class ExtendsExample{
    public static void main(String args[]){
       Rectangle rect1=new  Rectangle();
       rect1.setXY(100,200);
       rect1.setWHY(20,35,300);
       rect1.show();
    }
}
